<template>
  <div class="page">
    <div class="content-wrapper fade-in-section" ref="section2">
      <!-- 左侧文字卡片2 -->
      <div class="text-card">
        <div class="card-header">
          <h2>多模态大模型与深度学习</h2>
        </div>
        <div class="card-body">
          <p>
            探索视觉-语言大模型的前沿算法，研究图像、视频、文本等多模态信息的深度融合与理解，赋予机器更强的环境感知与认知能力。
          </p>
        </div>
      </div>

      <!-- 右侧图片2 -->
      <div class="image-container">
        <img :src="carouselItems2[0].image" alt="多模态大模型" class="single-image" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "deepStudy",
  data() {
    return {
      carouselItems2: [
        {
          image: require('@/assets/img/deepstudy.png'),
          // routepath: '/researchDirection/bigModel'
        },
      ],
    }
  }

}
</script>

<style scoped>
.page {
  min-height: calc(100vh - 520px);
  margin-top: 60px;
}

.content-wrapper {
  display: flex;
  gap: 15px; /* 减小左右元素间距 */
  margin: 0 auto;
  max-width: 1200px;
  margin-bottom: 30px; /* 减小底部间距 */
}

.fade-in-section {
  margin-top: 65px; /* 减小顶部间距 */
}

.text-card {
  flex: 1;
  min-width: 300px;
}

.card-header {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #eee;
}

.card-body {
  min-height: 270px;
  background: white;
  padding: 15px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.image-container {
  flex: 2;
  min-width: 400px; /* 减小最小宽度 */
  margin-left: 10px; /* 减小左侧间距 */
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.single-image {
  height: 400px; /* 调整高度 */
  width: 100%; /* 设置为容器宽度 */
  object-fit: contain;
  border-radius: 8px;
}
</style>